package com.snail.poker.dao;

import java.util.List;

import com.snail.poker.model.Dictionary;

/**
 * 字典表的数据访问接口
 * 
 * @author Snail
 * 
 */
public interface DictionaryDao {
	/**
	 * 新增字典
	 * 
	 * @param dict
	 * @throws Exception
	 */
	public abstract void addDict(Dictionary dict) throws Exception;

	/**
	 * 获取字典内容
	 * 
	 * @param dictSn
	 * @return
	 */
	public abstract Dictionary getDict(int dictSn);

	/**
	 * 查询Key对应的字典集合
	 * 
	 * @param key
	 *            相同的字典的关键字
	 * @return
	 */
	public abstract List<Dictionary> queryDict(int key);
}